import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    base: process.env.BASE_URL,
    meta: {keepAlive: true},
    routes: [
        {
            path: '/',
            name: 'home',
            // route level code-splitting
            // this generates a separate chunk (about.[hash].js) for this route
            // which is lazy-loaded when the route is visited.
            component: () => import(/* webpackChunkName: "about" */ '../views/Home/Home')
        },
        {
            path: '/exhibition',
            name: 'exhibition',
            component: () => import('../views/Exhibition/Exhibition')
        },
        {
            path: '/project',
            name: 'project',
            component: () => import('../views/Project/Project')
        },
        {
            path: '/thousand',
            name: 'thousand',
            component: () => import('../views/Thousand/Thousand')
        },
        {
            path: '/discount',
            name: 'discount',
            component: () => import('../views/Discount/Discount')
        },
        {
            path: '/news',
            name: 'news',
            component: () => import('../views/News/News'),
        },
        {
            path: "/newsinfo",
            name: "newsinfo",
            component: () => import('../views/News/NewsInfo'),
        },
        {
            path: "/search",
            name: "search",
            component: () => import('../views/Search/Search'),
        },
        {
            path: "/personLogin",
            name: "personLogin",
            component: () => import('../views/Login/PersonLogin'),
        },
        {
            path: "/companyLogin",
            name: "companyLogin",
            component: () => import('../views/Login/CompanyLogin'),
        }
    ]
})
